package com.curry.apiprovider.response;

import lombok.Data;

public enum ResultCode {


    RESULT_SUCCESS("0000", "成功"),

    RESULT_ADD_JOB_ERROR("20002", "添加定时任务失败"),
    RESULT_EXIST_JOB_ERROR("20003", "定时任务已经存在"),
    RESULT_PAUSE_JOB_ERROR("20004", "停止定时任务失败"),
    RESULT_START_JOB_ERROR("200011", "启动定时任务失败"),
    RESULT_DELETE_JOB_ERROR("20005", "删除定时任务"),
    RESULT_NOT_EXIST_JOB_ERROR("20006", "定时任务不存在"),
    RESULT_ADD_TASK_TAG_ERROR("20007", "添加任务类别失败"),
    RESULT_EXIST_TASK_TAG_ERROR("20009", "任务类别已经存在"),
    RESULT_EXIST_TASK_GROUP_ERROR("20010", "任务组已经存在"),
    RESULT_ADD_TASK_GROUP_ERROR("20008", "添加任务组失败"),
    RESULT_CRAWLER_FAILED("20001", "爬取失败");
    private String code;
    private String message;

    private ResultCode(String i, String message) {
        this.code = i;
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }


}
